import { createApp } from 'vue'
import './assets/style.scss'
import '@/assets/iconfont/iconfont.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import router from './router'
import { createPinia } from 'pinia'
import { initializeDynamicRoutes } from '@/utils'
import './assets/editor.css'

const app = createApp(App)

initializeDynamicRoutes().then(() => {
  app.use(ElementPlus, {
    locale: zhCn,
  })
  app.use(router)
  app.use(createPinia())
  app.mount('#app')
})